import request from '@/utils/request'


export function getPageUsableList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/pagination/admin/page/getUsableList',
    method: 'post',
    data: query
  })
}   


export function getPageList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/pagination/admin/page/getList',
    method: 'post',
    data: query
  })
}   

export function savePage(query) {
  return request({
    url: '/pagination/admin/page/save',
    method: 'post',
    data: query
  })
} 

export function refreshPage(query) {
  return request({
    url: '/pagination/admin/page/refresh',
    method: 'post',
    data: query
  })
}

export function removePage(query) {
  return request({
    url: '/pagination/admin/page/remove',
    method: 'post',
    data: query
  })
}
export function getPageDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/pagination/admin/page/getDetail',
    method: 'post',
    data: query
  })
}